---
category: Function
created: '2020-05-07'
title: Identity function
---

**JavaScript version**

```js identity.js
const identity = (x) => x;
```
